﻿using Library.Core.Domain.Repository;
using Synthesize.BaseSet.Domain.Aggregation.Entity.Authority;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Synthesize.BaseSet.Domain.Repository.Authority
{
    public interface IDepartmentRepository : IRepository<DepartmentInfoEntity>
    {
        /// <summary>
        /// 根据条件获取部门列表信息
        /// </summary>
        /// <param name="specification"></param>
        /// <param name="readOnly"></param>
        /// <returns></returns>
        Task<List<DepartmentInfoEntity>> GetDepartmentTree(Expression<Func<DepartmentInfoEntity, bool>> specification, bool readOnly);
    }
}
